import Router from '@koa/router';
import UserController from '../controller/user';

const userRouter = new Router();

userRouter.post('/addUser', UserController.addUser);
userRouter.post('/updateUser', UserController.updateUser);
userRouter.post('/deleteUser', UserController.deleteUser);
userRouter.get('/users', UserController.getUserList);
userRouter.get('/usersQb', UserController.getUserByQueryBuilder);
userRouter.post('/login', UserController.login);
userRouter.get('/userInfo', UserController.getUserInfo);

export default userRouter;
